package com.thy.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hospital.common.pojo.TAdmin;
import com.hospital.common.vo.audit.module.GetAdminVo;
import com.thy.mapper.TAdminMapper;
import com.thy.service.TAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 管理员表 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-09-30
 */
@Service
public class TAdminServiceImpl extends ServiceImpl<TAdminMapper, TAdmin> implements TAdminService {
    @Autowired
    private TAdminMapper tAdminMapper;

    @Override
    public GetAdminVo getAdmin(Long userId) {
        GetAdminVo admin = tAdminMapper.getAdmin(userId);
        if (admin != null){
            return admin;
        }
        return null;
    }
}
